package com.qgzj.exception;

import lombok.Data;

/**
 */
@Data
public class QgzjException extends  RuntimeException{

	private static final long serialVersionUID = 1L;

	private Integer code;

    private String msg;

    public QgzjException(QgzjStudyExceptionEnum result){
        this.code = result.getStatus();
        this.msg = result.getMessage();
    }



    public QgzjException(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }



    public QgzjException(String msg){
        this.code = QgzjStudyExceptionEnum.FAIL.getStatus();
        this.msg = msg;
    }
}
